#import "ApprehensionVelvetCell.h"


@implementation ApprehensionVelvetCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self marvelInitUIKitView];
	}
	return self;
}

- (void)setKite:(ApprehensionVelvetModel *)kite {
	_kite = kite;

	//: 配置cell的UI



}
//: _elevateRadianceBtn 的点击事件
- (void)action_1 {}

- (UIButton *)elevateRadianceBtn {
	if (!_elevateRadianceBtn) {
	
        _elevateRadianceBtn = [UIButton new];
        _elevateRadianceBtn.frame = CGRectMake(31, 19, 149, 121);
        UIImage *forestNoodleQuest = [UIImage imageNamed:@"images/icon_1.png"];
        if (forestNoodleQuest) {
	        [_elevateRadianceBtn setImage:forestNoodleQuest forState:UIControlStateNormal];
        }
        [_elevateRadianceBtn setTitle:@"button_1" forState:UIControlStateNormal];
        [_elevateRadianceBtn setTitle:@"button_selected_1" forState:UIControlStateSelected];
        [_elevateRadianceBtn setTitleColor:[UIColor colorWithRed:246/255.0 green:53/255.0 blue:200/255.0 alpha:0.9] forState:UIControlStateNormal];
        [_elevateRadianceBtn setTitleColor:[UIColor colorWithRed:59/255.0 green:135/255.0 blue:55/255.0 alpha:0.7] forState:UIControlStateSelected];
        [_elevateRadianceBtn addTarget:self action:@selector(action_1) forControlEvents:UIControlEventTouchUpInside];
	}
	return _elevateRadianceBtn;
}

//: questZealot 的点击事件
- (void)action_2 {}

//: _grinButton 的点击事件
- (void)action_7 {}

- (UIButton *)grinButton {
	if (!_grinButton) {
	
        _grinButton = [UIButton new];
        UIImage *balloonIdealNatural = [UIImage imageNamed:@"images/icon_7.png"];
        if (balloonIdealNatural) {
	        [_grinButton setImage:balloonIdealNatural forState:UIControlStateNormal];
        }
        [_grinButton setTitle:@"button_7" forState:UIControlStateNormal];
        [_grinButton setTitle:@"button_selected_7" forState:UIControlStateSelected];
        [_grinButton setTitleColor:[UIColor colorWithRed:114/255.0 green:137/255.0 blue:8/255.0 alpha:0.5] forState:UIControlStateNormal];
        [_grinButton setTitleColor:[UIColor colorWithRed:64/255.0 green:31/255.0 blue:184/255.0 alpha:1.0] forState:UIControlStateSelected];
        [_grinButton addTarget:self action:@selector(action_7) forControlEvents:UIControlEventTouchUpInside];
	}
	return _grinButton;
}

- (void)marvelInitUIKitView {

    //: 描述_0
    UITextField *yearningMarble = [[UITextField alloc] init];
    self.elevateTextField = yearningMarble;
    [self.contentView addSubview:yearningMarble];
	[self.elevateTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(49);
		make.height.mas_equalTo(98);
		make.top.equalTo(@(26));
	}];

	//: 描述_1
	[self.contentView addSubview:self.elevateRadianceBtn];


    //: 描述_2
    UIButton *questZealot = [UIButton new];
    questZealot.size = CGSizeMake(101, 40);
    questZealot.left = 24;
    questZealot.top = 28;
    UIImage *magnitudeNirvanaQuirk = [UIImage imageNamed:@"images/icon_2.png"];
    if (magnitudeNirvanaQuirk) {
	    [questZealot setImage:magnitudeNirvanaQuirk forState:UIControlStateNormal];
    }
    [questZealot setTitle:@"button_2" forState:UIControlStateNormal];
    [questZealot setTitle:@"button_selected_2" forState:UIControlStateSelected];
    [questZealot setTitleColor:[UIColor colorWithRed:14/255.0 green:134/255.0 blue:114/255.0 alpha:0.6] forState:UIControlStateNormal];
    [questZealot setTitleColor:[UIColor colorWithRed:16/255.0 green:127/255.0 blue:138/255.0 alpha:1.0] forState:UIControlStateSelected];
    [questZealot addTarget:self action:@selector(action_2) forControlEvents:UIControlEventTouchUpInside];
    self.nebulaNightfallButton = questZealot;
    [self.contentView addSubview:questZealot];


    //: 描述_3
    self.echoesImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
    self.echoesImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.echoesImageView.clipsToBounds = YES;
    self.echoesImageView.layer.cornerRadius = 11;
    self.echoesImageView.layer.masksToBounds = YES;
    self.echoesImageView.frame = CGRectMake(25, 8, 76, 49);
    UIImage *picture = [UIImage imageNamed:@"images/image_3.png"];
    if (picture) {
	    self.echoesImageView.image = picture;
    }
    [self.contentView addSubview:self.echoesImageView];


    //: 描述_4
    UIView *upliftGrinEmbark = [[UIView alloc] init];
    self.prismView = upliftGrinEmbark;
    [self.contentView addSubview:upliftGrinEmbark];
	[self.prismView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(108);
		make.height.mas_equalTo(57);
		make.top.equalTo(@(21));
		make.bottom.equalTo(@(25));
	}];


    //: 描述_5
    UILabel *glimpseJuggle = [UILabel new];
    glimpseJuggle.text = @"label_5";
    glimpseJuggle.font = [UIFont systemFontOfSize:17 weight:UIFontWeightBold];
    glimpseJuggle.textColor = [UIColor colorWithRed:62/255.0 green:130/255.0 blue:146/255.0 alpha:0.7];
    glimpseJuggle.textAlignment = NSTextAlignmentCenter;
    glimpseJuggle.numberOfLines = 0;
    self.unveilElusiveLabel = glimpseJuggle;
    [self.contentView addSubview:glimpseJuggle];
	[self.unveilElusiveLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(48);
		make.height.mas_equalTo(30);
		make.bottom.equalTo(@(10));
	}];


    //: 描述_6
    self.blossomJoyfulMergeView = [[UIView alloc] initWithFrame:CGRectZero];
    self.blossomJoyfulMergeView.size = CGSizeMake(196, 145);
    self.blossomJoyfulMergeView.left = 10;
    self.blossomJoyfulMergeView.top = 29;
    [self.contentView addSubview:self.blossomJoyfulMergeView];

	//: 描述_7
	[self.contentView addSubview:self.grinButton];
	[self.grinButton mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(94);
		make.height.mas_equalTo(120);
		make.top.equalTo(@(24));
		make.bottom.equalTo(@(12));
	}];
}


@end